import {createRouter,createWebHashHistory} from "vue-router"

const router=createRouter({
  history:createWebHashHistory(),
  routes:[
    {
      path:"/",
      redirect:"/main"
    },
    {
      path:"/login",
      component:()=>import("../views/login/login.vue")
    },

    {
      path:"/main",
      component:()=>import("../views/main/main.vue")
    },
    {
      path:"/:pathMatch(.*)",
      component:()=>import("../views/not-fount/NotFound.vue")
    }
  ]
})

export default router

